<?php
/**
 * Created by PhpStorm.
 * User: WINNERWLY
 * Date: 2018/8/8
 * Time: 11:48
 */

namespace app\index\model;


use think\Model;

class Bill extends Model
{
    protected $table = "bill";
    protected $insert = ["create_time"];

//    public function scopeIndex($query){
//        $query->field("id,cooperator_id,type,status,create_time,rea")
//    }

    public function setCreateTimeAttr()
    {
        return time();
    }
}
